package org.nstack.compute.vm;

import org.nstack.core.ScatteredValidator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


public class VmExpungeRootVolumeValidator extends ScatteredValidator {

    @Target({ElementType.METHOD})
    @Retention(RetentionPolicy.RUNTIME)
    public @interface VmExpungeRootVolumeValidatorMethod {
    }

    static {

        collectValidatorMethods(VmExpungeRootVolumeValidatorMethod.class, String.class, String.class);
    }

    public void validate(String vmUuid, String rootVolumeUuid) {
        invokeValidatorMethods(vmUuid, rootVolumeUuid);
    }
}
